package com.goktech.olala.server.dao.goods;

import com.goktech.olala.server.pojo.goods.GoodPicture;

import java.util.List;

/**
 * @author sanming
 */
public interface GoodPictureMapper {
    /**
     * 根据pictureId删除
     * @param pictureId
     * @return
     */
    int deleteByPrimaryKey(Long pictureId);

    /**
     * 新增
     * @param record
     * @return
     */
    int insert(GoodPicture record);

    /**
     * 查找
     * @param pictureId
     * @return
     */
    GoodPicture selectByPrimaryKey(Long pictureId);

    /**
     * 查找所有
     * @return
     */
    List<GoodPicture> selectAll();

    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKey(GoodPicture record);
}